import request from '@/utils/request'

// 查询密码设置列表
export function listSysPassword(query) {
  return request({
    url: '/system/sysPassword/list',
    method: 'get',
    params: query
  })
}

// 查询密码设置详细
export function getSysPassword(id) {
  if (id == null) {
    id = 'getSysPassword'
  }
  return request({
    url: '/system/sysPassword/' + id,
    method: 'get'
  })
}

// 新增密码设置
export function addSysPassword(data) {
  return request({
    url: '/system/sysPassword',
    method: 'post',
    data: data
  })
}

// 修改密码设置
export function updateSysPassword(data) {
  return request({
    url: '/system/sysPassword',
    method: 'put',
    data: data
  })
}

// 删除密码设置
export function delSysPassword(id) {
  return request({
    url: '/system/sysPassword/' + id,
    method: 'delete'
  })
}
